class Person {
  String name = "张三";
  num age = 20;

  void printInfo() {
    print("${this.name}---${this.age}");
  }
}

class Web extends Person {}

main() {
  Web w = new Web();
  print(w.name);
  w.printInfo();
}
